package 桥接模式;

import 桥接模式.品牌类.Haier;
import 桥接模式.品牌类.Hisense;
import 桥接模式.品牌类.TCL;
import 桥接模式.电器类.AirConditioner;
import 桥接模式.电器类.Electric;
import 桥接模式.电器类.Fridge;
import 桥接模式.电器类.TeleVision;

public class Client {
    public static void main(String[] args) {
        System.out.println("--------------海尔产品--------------");
        Electric electric1 = new Fridge(new Haier());//海尔的冰箱
        Electric electric2 = new AirConditioner(new Haier());//海尔空调
        Electric electric3 = new TeleVision(new Haier());//海尔电视机

        System.out.println("--------------TCL产品--------------");
        Electric electric4 = new Fridge(new TCL());//TCL的冰箱
        Electric electric5 = new AirConditioner(new TCL());//TCL空调
        Electric electric6 = new TeleVision(new TCL());//TCL电视机

        System.out.println("--------------海信产品--------------");
        Electric electric7 = new Fridge(new Hisense());//海信的冰箱
        Electric electric8 = new AirConditioner(new Hisense());//海信空调
        Electric electric9 = new TeleVision(new Hisense());//海信电视机
    }
}
